import 'dart:convert';

ShareKnowledgeWordsDto shareKnowledgeWordsDtoFromJson(String str) =>
    ShareKnowledgeWordsDto.fromJson(json.decode(str));
String shareKnowledgeWordsDtoToJson(ShareKnowledgeWordsDto data) =>
    json.encode(data.toJson());

class ShareKnowledgeWordsDto {
  ShareKnowledgeWordsDto({
    this.folderIds,
    this.knowledgeIds,
    this.shareUserIds,
  });

  List<String>? folderIds;
  List<String>? knowledgeIds;
  List<String>? shareUserIds;

  factory ShareKnowledgeWordsDto.fromJson(Map<String, dynamic> json) =>
      ShareKnowledgeWordsDto(
        folderIds: json["folderIds"] != null
            ? List<String>.from(json["folderIds"].map((x) => x))
            : null,
        knowledgeIds: json["knowledgeIds"] != null
            ? List<String>.from(json["knowledgeIds"].map((x) => x))
            : null,
        shareUserIds: json["shareUserIds"] != null
            ? List<String>.from(json["shareUserIds"].map((x) => x))
            : null,
      );

  Map<String, dynamic> toJson() => {
        "folderIds": folderIds != null
            ? List<dynamic>.from(folderIds!.map((x) => x))
            : null,
        "knowledgeIds": knowledgeIds != null
            ? List<dynamic>.from(knowledgeIds!.map((x) => x))
            : null,
        "shareUserIds": shareUserIds != null
            ? List<dynamic>.from(shareUserIds!.map((x) => x))
            : null,
      };
}
